import * as subjectApi from '../../api/hmmm/subjects'

export default {
  namespaced: true,
  state: {
    subjectsList: {}
  },
  mutations: {
    SET_SUBJECTS_LIST(state, newValue) {
      state.subjectsList = newValue
    },
  },
  actions: {
    async updateSubjectsList({ commit }, params) {
      const res = await subjectApi.list(params);
      commit('SET_SUBJECTS_LIST', res);
    },
  },
}
